package com.unei.guava.demo.base;

import java.util.Collection;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;

/**
 * Created by sunlei on 2015/2/5.
 */
public class Utils {
    public static Object mergeFutureResult(List<Future<?>> futures, long timeout, TimeUnit unit) throws ExecutionException, InterruptedException {
        return futures.get(0).get();
    }
}
